import request from '@/utils/request'

export const subGetSubjectService = () => {
    return request.get('/api/get/subject')
}

export const subGetAllSubjectService = () => {
    return request.get('/api/allSubject')
}

// 新增课程
export const subAddSubjectService = (data) => {
    return request.post('/api/addSubject', data)
}

// 修改课程
export const subUpdateSubjectService = (data) => {
    return request.post('/api/updateSubject', data)
}

// 删除课程
export const subDelSubjectService = (data) => {
    return request.post('/api/delSubject', data)
}